<div class="row">
    <div class="app-block">
        <div class="app-icon">
            <img alt="" src="<?php echo _BASE_URL.'/'.$this->app_info['app_icon']?>">
        </div>
        <div class="app-name">
            <h3><?php echo $this->app_info['app_name']?></h3>
            <p>Nhà phá triển: <strong><?php echo $this->app_info['dev_id']?></strong></p>
            <p>Package Name: <strong><?php echo $this->app_info['app_id']?></strong></p>
            <p>Chuyên mục ứng dụng: <strong><?php echo $this->app_info['cat_name']?></strong></p>
            <p>Website: <strong><?php echo $this->app_info['app_website']?></strong></p>
            <p>Email: <strong><?php echo $this->app_info['app_email']?></strong></p>
            <p>Số điện thoại: <strong><?php echo $this->app_info['app_phone']?></strong></p>
        </div>
                
    </div>
    <div class="app-block">
        <div class="tite">
            <h2>Ảnh màn hình</h2>
        </div>
        <div id="screenshot-view">
            <div id="ifs-carousel-slides"> 
        		<ul>
        		  <?php $i=0; foreach ($this->app_scr as $scr){$i++;?>
        		    <li <?php if($i==1)echo 'class="active"'?>><a class="fancybox" rel="group" href="<?php echo _BASE_URL.'/'.$scr['scr_link']?>"><img src="<?php echo _BASE_URL.'/'.$scr['scr_link']?>" /></a></li>
        		  <?php }?>
        		            			
        		</ul>
        		<div class="clear"></div>
        	</div>
        	<button id="ifs-carousel-prev" class="screen-shot-btn"><i class="fa fa-chevron-left"></i></button>
        	<button id="ifs-carousel-next" class="screen-shot-btn"><i class="fa fa-chevron-right"></i></button>  
        </div>
    </div>
    <div class="app-block">
        <div class="tite">
            <h2>Mô tả</h2>
        </div>
        <div class="app-desc">
        	<div class="desc-inner" style="max-height: 150px;">
        		<div class="view-desc" style="">
        			<?php echo $this->app_info['app_description']?>
        		</div>
        		<div class="alpha-bg-desc"></div>
        		
        	</div>
        	<div class="pull-right">
    			<a class="btn btn-default" href="javascript: void(0);" id="fn-description">Xem thêm</a>
    			<a class="btn btn-default" style="display: none;" href="javascript: void(0);" id="fn-description-short">Thu gọn</a>
    		</div>
        </div>
    </div>
    <div class="app-block">
        <div class="tite">
            <h2>Thông tin</h2>
        </div>
        <div class="app-block-inner row" >
            <div class="col-sm-2">
                <p><strong>Ngày tạo</strong></p>
                <p><?php $date = new DateTime($this->app_info['app_date_create']); echo $date->format('d/m/Y')?></p>
            </div>
            <div class="col-sm-2">
                <p><strong>Phiên bản</strong></p>
                <p><?php echo $this->app_vers['vers_name']?></p>
            </div>
            <div class="col-sm-2">
                <p><strong>Kích thước</strong></p>
                <p><?php $size = $this->app_vers['vers_size'];  echo round($size/(1024*1024),2); ?> MB</p>
            </div>
            <div class="col-sm-2">
                <p><strong>Hệ đều hành</strong></p>
                <p>Android</p>
            </div>
            <div class="col-sm-2">
                <p><strong>Phiên bản</strong></p>
                <p>Android 2.3 trở lên</p>
            </div>
            <div class="col-sm-2">
                <p><strong>Thiết bị hổ trợ</strong></p>
                <p>Tất cả</p>
            </div>
        </div>
    </div>
    <div class="app-block">
        <div class="tite">
            <h2>Thông tin file APK</h2>
        </div>
        <?php 
            $info = $this->app_vers['vers_info'];
            //echo($this->app_vers['vers_info']);
            $info = json_decode($info,true);           
        ?>
        <div class="app-block-inner" >
            <p>PackageName: <b><?php echo $info['PackageName']?></b></p>
            <p>VersionName: <b><?php echo $info['VersionName']?></b></p>
            <p>VersionCode: <b><?php echo $info['VersionCode']?></b></p>
            <div>
                <p>Permissions:</p>
                <ul>
                <?php foreach ($info['Permissions'] as $key=>$value){?>
                    <li><strong><?php echo $key?>:</strong> <?php echo $value['description']?></li>
                <?php }?>
                </ul>
            </div>
            
            
        </div>
   </div>
</div>